<h3>Load vouchers</h3>
<?php 
	if (!$this->editData) $editData = array(); 
	else $editData = $this->editData; ?>
<form class="form-horizontal" method="POST">
<input type='hidden' name="vid" value="<?= $this->vid ?>" />
  <fieldset>
    <legend>Edit voucher</legend>
    <div class="control-group">
      <label class="control-label" for="voucher">Voucher Number</label>
      <div class="controls">
		<input type="text" id="voucher" name="voucher" value="<?= $editData['voucher'] ?>">
      </div>
    </div>
	<div class="control-group">
      <label class="control-label" for="cvv">CVV</label>
      <div class="controls">
		<input type="text" id="cvv" name="cvv" value="<?= $editData['cvv'] ?>">
      </div>
    </div>
	<div class="control-group">
      <label class="control-label" for="exp_date">Expiration Date</label>
      <div class="controls">
		<input type="text" id="exp_date" name="exp_date" value="<?= $editData['exp_date'] ?>">
      </div>
    </div>
	<div class="control-group">
      <label class="control-label" for="name">Name</label>
      <div class="controls">
		<input type="text" id="name" name="name" value="<?= $editData['name'] ?>">
      </div>
    </div>
	<div class="control-group">
      <label class="control-label" for="city">City</label>
      <div class="controls">
		<input type="text" id="city" name="city" value="<?= $editData['city'] ?>">
      </div>
    </div>
	<div class="control-group">
      <label class="control-label" for="address">Address</label>
      <div class="controls">
		<input type="text" id="address" name="address" value="<?= $editData['address'] ?>">
      </div>
    </div>
	<div class="control-group">
      <label class="control-label" for="zip">Zip</label>
      <div class="controls">
		<input type="text" id="zip" name="zip" value="<?= $editData['zip'] ?>">
      </div>
    </div>
	<div class="control-group">
      <label class="control-label" for="price">Price</label>
      <div class="controls">
		<input type="text" id="price" name="price" value="<?= $editData['price'] ?>">
      </div>
    </div>
    <div class="control-group">
      <div class="controls">
        <button type="submit" class="btn btn-success">Save change</button>
      </div>
    </div>
  </fieldset>
</form>
